#pragma once


#include "Entity.h"

class bullet : public Entity {
public:
    bullet()
    {
        name = "bullet";
    }

    void  update()
    {
        dx = cos(angle * DEGTORAD) * 6;
        dy = sin(angle * DEGTORAD) * 6;
        // angle+=rand()%7-3;  /*try this*/
        x += dx;
        y += dy;

        if (x > WindowsWidth || x<0 || y>WindowsHeight || y < 0) life = 0;
    }
};

